import request from '@/utils/request'
// 查询部门列表
export function listDept(query) {
  return request({
    url: '/system/dept/list',
    method: 'get',
    params: query
  })
}

// 查询部门用户
export function getUserByDeptIds(deptIdList) {
  return request({
    url: '/system/Email/getUserByDeptIds',
    method: 'post',
    data:deptIdList
  })
}

// 查询菜单列表
export function getSystemMenu() {
  return request({
    url: '/system/Email/getSystemMenu',
    method: 'get'
  })
}

// 查询系统用户
export function querySystemUser(menuId) {
  return request({
    url: '/system/Email/querySystemUser',
    method: 'get',
    params:{
      menuId:menuId
    }
  })
}

//修改邮件发送权限
export function setUserEmailSystem(userIdList) {
  return request({
    url: '/system/Email/setUserEmailSystem',
    method: 'put',
    data:userIdList
  })
}